/*package br.ebula.apl.dao;

import java.sql.CallableStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

import br.ebula.apl.dto.DTOListaBulas;

import java.sql.PreparedStatement;

public class DAOListaBulas extends DAOGenerico{

	DTOListaBulas dto = null;
	
	@Override
	void configuraParametros(CallableStatement cstmt) throws SQLException {
		cstmt.setString(1, dto.getFiltro().getLetra().toString());
	}

}
 */

package br.ebula.apl.dao;

import java.sql.CallableStatement;
import java.sql.SQLException;

import br.ebula.apl.dto.DTOListaBulas;

public class DAOListaBulas extends DAOGenerico {

	DTOListaBulas dto;
	
	public void listaBulas(DTOListaBulas dto) {
		this.dto = dto;
		dto.retiraBulas(executaProcedure("lista_bulas",1));
	}

	@Override
	void configuraParametros(CallableStatement cstmt) throws SQLException {
		cstmt.setString(1, dto.getFiltro().getLetra() + "%");
	}
}
